Optimal. Leaf size=150 \[ 20 c d^3 \sqrt {b d+2 c d x}-\frac {d (b d+2 c d x)^{5/2}}{a+b x+c x^2}-10 c \sqrt [4]{b^2-4 a c} d^{7/2} \tan ^{-1}\left (\frac {\sqrt {d (b+2 c x)}}{\sqrt [4]{b^2-4 a c} \sqrt {d}}\right )-10 c \sqrt [4]{b^2-4 a c} d^{7/2} \tanh ^{-1}\left (\frac {\sqrt {d (b+2 c x)}}{\sqrt [4]{b^2-4 a c} \sqrt {d}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.09, antiderivative size = 150, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 7, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.269, Rules used = {700, 706, 708,
335, 218, 212, 209} \begin {gather*} -10 c d^{7/2} \sqrt [4]{b^2-4 a c} \text {ArcTan}\left (\frac {\sqrt {d (b+2 c x)}}{\sqrt {d} \sqrt [4]{b^2-4 a c}}\right )-10 c d^{7/2} \sqrt [4]{b^2-4 a c} \tanh ^{-1}\left (\frac {\sqrt {d (b+2 c x)}}{\sqrt {d} \sqrt [4]{b^2-4 a c}}\right )-\frac {d (b d+2 c d x)^{5/2}}{a+b x+c x^2}+20 c d^3 \sqrt {b d+2 c d x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 209
Rule 212
Rule 218
Rule 335
Rule 700
Rule 706
Rule 708
Rubi steps
\begin {align*} \int \frac {(b d+2 c d x)^{7/2}}{\left (a+b x+c x^2\right )^2} \, dx &=-\frac {d (b d+2 c d x)^{5/2}}{a+b x+c x^2}+\left (5 c d^2\right ) \int \frac {(b d+2 c d x)^{3/2}}{a+b x+c x^2} \, dx\\ &=20 c d^3 \sqrt {b d+2 c d x}-\frac {d (b d+2 c d x)^{5/2}}{a+b x+c x^2}+\left (5 c \left (b^2-4 a c\right ) d^4\right ) \int \frac {1}{\sqrt {b d+2 c d x} \left (a+b x+c x^2\right )} \, dx\\ &=20 c d^3 \sqrt {b d+2 c d x}-\frac {d (b d+2 c d x)^{5/2}}{a+b x+c x^2}+\frac {1}{2} \left (5 \left (b^2-4 a c\right ) d^3\right ) \text {Subst}\left (\int \frac {1}{\sqrt {x} \left (a-\frac {b^2}{4 c}+\frac {x^2}{4 c d^2}\right )} \, dx,x,b d+2 c d x\right )\\ &=20 c d^3 \sqrt {b d+2 c d x}-\frac {d (b d+2 c d x)^{5/2}}{a+b x+c x^2}+\left (5 \left (b^2-4 a c\right ) d^3\right ) \text {Subst}\left (\int \frac {1}{a-\frac {b^2}{4 c}+\frac {x^4}{4 c d^2}} \, dx,x,\sqrt {d (b+2 c x)}\right )\\ &=20 c d^3 \sqrt {b d+2 c d x}-\frac {d (b d+2 c d x)^{5/2}}{a+b x+c x^2}-\left (10 c \sqrt {b^2-4 a c} d^4\right ) \text {Subst}\left (\int \frac {1}{\sqrt {b^2-4 a c} d-x^2} \, dx,x,\sqrt {d (b+2 c x)}\right )-\left (10 c \sqrt {b^2-4 a c} d^4\right ) \text {Subst}\left (\int \frac {1}{\sqrt {b^2-4 a c} d+x^2} \, dx,x,\sqrt {d (b+2 c x)}\right )\\ &=20 c d^3 \sqrt {b d+2 c d x}-\frac {d (b d+2 c d x)^{5/2}}{a+b x+c x^2}-10 c \sqrt [4]{b^2-4 a c} d^{7/2} \tan ^{-1}\left (\frac {\sqrt {d (b+2 c x)}}{\sqrt [4]{b^2-4 a c} \sqrt {d}}\right )-10 c \sqrt [4]{b^2-4 a c} d^{7/2} \tanh ^{-1}\left (\frac {\sqrt {d (b+2 c x)}}{\sqrt [4]{b^2-4 a c} \sqrt {d}}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 0.77, size = 256, normalized size = 1.71 \begin {gather*} (1+i) c (d (b+2 c x))^{7/2} \left (\frac {\left (\frac {1}{2}-\frac {i}{2}\right ) \left (-5 b^2+20 a c+4 (b+2 c x)^2\right )}{c (b+2 c x)^3 (a+x (b+c x))}-\frac {5 i \sqrt [4]{b^2-4 a c} \tan ^{-1}\left (1-\frac {(1+i) \sqrt {b+2 c x}}{\sqrt [4]{b^2-4 a c}}\right )}{(b+2 c x)^{7/2}}+\frac {5 i \sqrt [4]{b^2-4 a c} \tan ^{-1}\left (1+\frac {(1+i) \sqrt {b+2 c x}}{\sqrt [4]{b^2-4 a c}}\right )}{(b+2 c x)^{7/2}}+\frac {5 i \sqrt [4]{b^2-4 a c} \tanh ^{-1}\left (\frac {(1+i) \sqrt [4]{b^2-4 a c} \sqrt {b+2 c x}}{\sqrt {b^2-4 a c}+i (b+2 c x)}\right )}{(b+2 c x)^{7/2}}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(311\) vs.
\(2(126)=252\).
time = 0.73, size = 312, normalized size = 2.08
method | result | size |
derivativedivides | \(16 c \,d^{3} \left (\sqrt {2 c d x +b d}-d^{2} \left (\frac {\left (-\frac {a c}{4}+\frac {b^{2}}{16}\right ) \sqrt {2 c d x +b d}}{a c \,d^{2}-\frac {b^{2} d^{2}}{4}+\frac {\left (2 c d x +b d \right )^{2}}{4}}+\frac {5 \left (a c -\frac {b^{2}}{4}\right ) \sqrt {2}\, \left (\ln \left (\frac {2 c d x +b d +\left (4 a c \,d^{2}-b^{2} d^{2}\right )^{\frac {1}{4}} \sqrt {2 c d x +b d}\, \sqrt {2}+\sqrt {4 a c \,d^{2}-b^{2} d^{2}}}{2 c d x +b d -\left (4 a c \,d^{2}-b^{2} d^{2}\right )^{\frac {1}{4}} \sqrt {2 c d x +b d}\, \sqrt {2}+\sqrt {4 a c \,d^{2}-b^{2} d^{2}}}\right )+2 \arctan \left (\frac {\sqrt {2}\, \sqrt {2 c d x +b d}}{\left (4 a c \,d^{2}-b^{2} d^{2}\right )^{\frac {1}{4}}}+1\right )-2 \arctan \left (-\frac {\sqrt {2}\, \sqrt {2 c d x +b d}}{\left (4 a c \,d^{2}-b^{2} d^{2}\right )^{\frac {1}{4}}}+1\right )\right )}{8 \left (4 a c \,d^{2}-b^{2} d^{2}\right )^{\frac {3}{4}}}\right )\right )\) | \(312\) |
default | \(16 c \,d^{3} \left (\sqrt {2 c d x +b d}-d^{2} \left (\frac {\left (-\frac {a c}{4}+\frac {b^{2}}{16}\right ) \sqrt {2 c d x +b d}}{a c \,d^{2}-\frac {b^{2} d^{2}}{4}+\frac {\left (2 c d x +b d \right )^{2}}{4}}+\frac {5 \left (a c -\frac {b^{2}}{4}\right ) \sqrt {2}\, \left (\ln \left (\frac {2 c d x +b d +\left (4 a c \,d^{2}-b^{2} d^{2}\right )^{\frac {1}{4}} \sqrt {2 c d x +b d}\, \sqrt {2}+\sqrt {4 a c \,d^{2}-b^{2} d^{2}}}{2 c d x +b d -\left (4 a c \,d^{2}-b^{2} d^{2}\right )^{\frac {1}{4}} \sqrt {2 c d x +b d}\, \sqrt {2}+\sqrt {4 a c \,d^{2}-b^{2} d^{2}}}\right )+2 \arctan \left (\frac {\sqrt {2}\, \sqrt {2 c d x +b d}}{\left (4 a c \,d^{2}-b^{2} d^{2}\right )^{\frac {1}{4}}}+1\right )-2 \arctan \left (-\frac {\sqrt {2}\, \sqrt {2 c d x +b d}}{\left (4 a c \,d^{2}-b^{2} d^{2}\right )^{\frac {1}{4}}}+1\right )\right )}{8 \left (4 a c \,d^{2}-b^{2} d^{2}\right )^{\frac {3}{4}}}\right )\right )\) | \(312\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: ValueError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 359 vs.
\(2 (126) = 252\).
time = 3.05, size = 359, normalized size = 2.39 \begin {gather*} -\frac {20 \, \left ({\left (b^{2} c^{4} - 4 \, a c^{5}\right )} d^{14}\right )^{\frac {1}{4}} {\left (c x^{2} + b x + a\right )} \arctan \left (\frac {\left ({\left (b^{2} c^{4} - 4 \, a c^{5}\right )} d^{14}\right )^{\frac {3}{4}} \sqrt {2 \, c d x + b d} c d^{3} - \left ({\left (b^{2} c^{4} - 4 \, a c^{5}\right )} d^{14}\right )^{\frac {3}{4}} \sqrt {2 \, c^{3} d^{7} x + b c^{2} d^{7} + \sqrt {{\left (b^{2} c^{4} - 4 \, a c^{5}\right )} d^{14}}}}{{\left (b^{2} c^{4} - 4 \, a c^{5}\right )} d^{14}}\right ) + 5 \, \left ({\left (b^{2} c^{4} - 4 \, a c^{5}\right )} d^{14}\right )^{\frac {1}{4}} {\left (c x^{2} + b x + a\right )} \log \left (5 \, \sqrt {2 \, c d x + b d} c d^{3} + 5 \, \left ({\left (b^{2} c^{4} - 4 \, a c^{5}\right )} d^{14}\right )^{\frac {1}{4}}\right ) - 5 \, \left ({\left (b^{2} c^{4} - 4 \, a c^{5}\right )} d^{14}\right )^{\frac {1}{4}} {\left (c x^{2} + b x + a\right )} \log \left (5 \, \sqrt {2 \, c d x + b d} c d^{3} - 5 \, \left ({\left (b^{2} c^{4} - 4 \, a c^{5}\right )} d^{14}\right )^{\frac {1}{4}}\right ) - {\left (16 \, c^{2} d^{3} x^{2} + 16 \, b c d^{3} x - {\left (b^{2} - 20 \, a c\right )} d^{3}\right )} \sqrt {2 \, c d x + b d}}{c x^{2} + b x + a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 441 vs.
\(2 (126) = 252\).
time = 2.66, size = 441, normalized size = 2.94 \begin {gather*} -5 \, \sqrt {2} {\left (-b^{2} d^{2} + 4 \, a c d^{2}\right )}^{\frac {1}{4}} c d^{3} \arctan \left (\frac {\sqrt {2} {\left (\sqrt {2} {\left (-b^{2} d^{2} + 4 \, a c d^{2}\right )}^{\frac {1}{4}} + 2 \, \sqrt {2 \, c d x + b d}\right )}}{2 \, {\left (-b^{2} d^{2} + 4 \, a c d^{2}\right )}^{\frac {1}{4}}}\right ) - 5 \, \sqrt {2} {\left (-b^{2} d^{2} + 4 \, a c d^{2}\right )}^{\frac {1}{4}} c d^{3} \arctan \left (-\frac {\sqrt {2} {\left (\sqrt {2} {\left (-b^{2} d^{2} + 4 \, a c d^{2}\right )}^{\frac {1}{4}} - 2 \, \sqrt {2 \, c d x + b d}\right )}}{2 \, {\left (-b^{2} d^{2} + 4 \, a c d^{2}\right )}^{\frac {1}{4}}}\right ) - \frac {5}{2} \, \sqrt {2} {\left (-b^{2} d^{2} + 4 \, a c d^{2}\right )}^{\frac {1}{4}} c d^{3} \log \left (2 \, c d x + b d + \sqrt {2} {\left (-b^{2} d^{2} + 4 \, a c d^{2}\right )}^{\frac {1}{4}} \sqrt {2 \, c d x + b d} + \sqrt {-b^{2} d^{2} + 4 \, a c d^{2}}\right ) + \frac {5}{2} \, \sqrt {2} {\left (-b^{2} d^{2} + 4 \, a c d^{2}\right )}^{\frac {1}{4}} c d^{3} \log \left (2 \, c d x + b d - \sqrt {2} {\left (-b^{2} d^{2} + 4 \, a c d^{2}\right )}^{\frac {1}{4}} \sqrt {2 \, c d x + b d} + \sqrt {-b^{2} d^{2} + 4 \, a c d^{2}}\right ) + 16 \, \sqrt {2 \, c d x + b d} c d^{3} + \frac {4 \, {\left (\sqrt {2 \, c d x + b d} b^{2} c d^{5} - 4 \, \sqrt {2 \, c d x + b d} a c^{2} d^{5}\right )}}{b^{2} d^{2} - 4 \, a c d^{2} - {\left (2 \, c d x + b d\right )}^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.62, size = 597, normalized size = 3.98 \begin {gather*} 16\,c\,d^3\,\sqrt {b\,d+2\,c\,d\,x}+\frac {\sqrt {b\,d+2\,c\,d\,x}\,\left (16\,a\,c^2\,d^5-4\,b^2\,c\,d^5\right )}{{\left (b\,d+2\,c\,d\,x\right )}^2-b^2\,d^2+4\,a\,c\,d^2}-10\,c\,d^{7/2}\,\mathrm {atan}\left (\frac {\sqrt {b\,d+2\,c\,d\,x}}{\sqrt {d}\,{\left (b^2-4\,a\,c\right )}^{1/4}}\right )\,{\left (b^2-4\,a\,c\right )}^{1/4}-c\,d^{7/2}\,\mathrm {atan}\left (\frac {c\,d^{7/2}\,\left (\sqrt {b\,d+2\,c\,d\,x}\,\left (25600\,a^2\,c^4\,d^{10}-12800\,a\,b^2\,c^3\,d^{10}+1600\,b^4\,c^2\,d^{10}\right )-5\,c\,d^{7/2}\,{\left (b^2-4\,a\,c\right )}^{1/4}\,\left (5120\,a^2\,c^3\,d^7-2560\,a\,b^2\,c^2\,d^7+320\,b^4\,c\,d^7\right )\right )\,{\left (b^2-4\,a\,c\right )}^{1/4}\,5{}\mathrm {i}+c\,d^{7/2}\,\left (\sqrt {b\,d+2\,c\,d\,x}\,\left (25600\,a^2\,c^4\,d^{10}-12800\,a\,b^2\,c^3\,d^{10}+1600\,b^4\,c^2\,d^{10}\right )+5\,c\,d^{7/2}\,{\left (b^2-4\,a\,c\right )}^{1/4}\,\left (5120\,a^2\,c^3\,d^7-2560\,a\,b^2\,c^2\,d^7+320\,b^4\,c\,d^7\right )\right )\,{\left (b^2-4\,a\,c\right )}^{1/4}\,5{}\mathrm {i}}{5\,c\,d^{7/2}\,\left (\sqrt {b\,d+2\,c\,d\,x}\,\left (25600\,a^2\,c^4\,d^{10}-12800\,a\,b^2\,c^3\,d^{10}+1600\,b^4\,c^2\,d^{10}\right )-5\,c\,d^{7/2}\,{\left (b^2-4\,a\,c\right )}^{1/4}\,\left (5120\,a^2\,c^3\,d^7-2560\,a\,b^2\,c^2\,d^7+320\,b^4\,c\,d^7\right )\right )\,{\left (b^2-4\,a\,c\right )}^{1/4}-5\,c\,d^{7/2}\,\left (\sqrt {b\,d+2\,c\,d\,x}\,\left (25600\,a^2\,c^4\,d^{10}-12800\,a\,b^2\,c^3\,d^{10}+1600\,b^4\,c^2\,d^{10}\right )+5\,c\,d^{7/2}\,{\left (b^2-4\,a\,c\right )}^{1/4}\,\left (5120\,a^2\,c^3\,d^7-2560\,a\,b^2\,c^2\,d^7+320\,b^4\,c\,d^7\right )\right )\,{\left (b^2-4\,a\,c\right )}^{1/4}}\right )\,{\left (b^2-4\,a\,c\right )}^{1/4}\,10{}\mathrm {i} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________